<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <title></title>
    <style>
        ul li {
            height: 100px;
            line-height: 100px;
            list-style: none;
            font-size: 20px;
            color: #a135ff;
        }
        div {
            width: 800px;
            margin: 0 auto;
            text-align: center;
        }
    </style>
</head>
<body style="background: url('img/c475660fd9f9d72acd54a8fcd52a2834359bbbdd[1].jpg');background-size: 100%">
<div>
<?php
$conn = @mysqli_connect("localhost","root","","abcd");
if (!$conn){
    die("连接数据库失败：" . mysqli_error());
}
header("Content-type:text/html;charset=utf-8");
session_start();
$user =$_SESSION['username'];
echo "欢迎回来".$user;
$xiugai="select * from user WHERE username='$user'";
$xiugai=mysqli_query($conn,$xiugai);
$xiugai=mysqli_fetch_row($xiugai);
?>
    <form method="post" action="jifen.php" name="myform" onsubmit="InputCheck(this)">
        <ul>
            <li>用户名：<input type="text" name="username" value="<?php echo $xiugai[1]?>" readonly/><br/></li>
            <li>密  码：<input type="password" name="password" value="<?php echo $xiugai[2]?>"/><br/></li>
            <li>确认密码：<input type="password" name="passwordT"/><br/></li>
            <li>E m a i；<input type="email" name="myemail" value="<?php echo $xiugai[5]?>"/><br/></li>
            <li>手机号：<input type="number" name="mynumber" value="<?php echo $xiugai[6]?>"/><br/></li>
            <li>验证码:<input type="text" name="mytext"/><br/></li>
            <li><input type="submit" name="submit" value="一键修改" /></li>
        </ul>
    </form>

</div>
</body>
<script type="text/javascript" src="yonghu.js"></script>
</html>